<?php if (Zend_Auth::getInstance()->hasIdentity()): ?>
<p>Ciao <?php echo Zend_Auth::getInstance()->getIdentity()->userNome; ?> | <a href="/cms/user/logout">Logout</a></p>
<?php else: ?>
<a href="/cms/user/login">Login</a>
<?php endif; ?>